import {Divider, Flex} from "antd";
import {Link, useNavigate} from "react-router-dom";
import {useEffect} from "react";


const IndexPage = () => {
    const navigate = useNavigate();

    useEffect(() => {
         navigate("/nav");
    },[]);
    return (
        <div>
            <h1>Index Page</h1>
            <Divider/>
            <Flex vertical={true} gap={20}>
                <Link to={"/login"}>Login</Link>
                <Link to={"/home"}>Home</Link>
            </Flex>
        </div>
    );
};

export default IndexPage;